package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地磅业务对象 n_materiel_device
 *
 * @author zyb
 * @date 2023-09-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NMaterielDeviceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 基地code
     */
    @NotBlank(message = "基地code不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baseCode;

    /**
     * 地磅名称
     */
    @NotBlank(message = "地磅名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 地磅编码
     */
    @NotBlank(message = "地磅编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 地磅厂商
     */
    @NotBlank(message = "地磅厂商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String weighbridgeManufacturer;

    /**
     * 地磅厂商联系人
     */
    @NotBlank(message = "地磅厂商联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String weighbridgeContacts;

    /**
     * 地磅型号
     */
    @NotBlank(message = "地磅型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String weighbridgeModel;

    /**
     * 地磅联系电话
     */
    @NotBlank(message = "地磅联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String weighbridgePhone;

    /**
     * 仪表厂商
     */
    @NotBlank(message = "仪表厂商不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instrumentManufacturer;

    /**
     * 仪表联系人
     */
    @NotBlank(message = "仪表联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instrumentContacts;

    /**
     * 仪表型号
     */
    @NotBlank(message = "仪表型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instrumentModel;

    /**
     * 仪表厂商电话
     */
    @NotBlank(message = "仪表厂商电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instrumentPhone;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 创建人
     */
    @NotNull(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long creator;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createDate;

    /**
     * 修改人
     */
    @NotNull(message = "修改人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long updater;

    /**
     * 修改时间
     */
    @NotNull(message = "修改时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updateDate;

    @NotNull(message = "是否接入1接入0未接入", groups = { AddGroup.class, EditGroup.class })
    private Integer isConnect;

    /**
     * 1张拉2压浆3其他
     */
    private String type;
    /**
     * 物联卡号
     */
    private String cardNum;

}
